package satir.card;

import satir.player.Player;

/**
 * The Class Card.
 * 
 * @version 2.0 March 2012
 * @author Antony Chan
 */
public abstract class Card {
	
	/** The card name. */
	protected String name;
	
	/**
	 * Activate card.
	 *
	 * @param p the player object for card operation
	 */
	abstract public void activateCard(Player p);
	
	/**
	 * Instantiates a new card.
	 */
	public Card(){
		
	}
	
	/**
	 * Instantiates a new card.
	 *
	 * @param name the card name
	 */
	public Card(String name){
		this.name = name;
	}
	
	/**
	 * Sets the card name.
	 *
	 * @param name the new card name
	 */
	public void setName(String name){
		this.name = name;
	}
	
	/**
	 * Gets the card name.
	 *
	 * @return the card name
	 */
	public String getName(){
		return this.name;
	}
}